import React, { useDebugValue } from "react";
import { useState } from "react";


// 自定义Hooks
function useMyHook(initValue) {


  // useDebugValue 就是让你在控制台中看到自定义的Hooks的标记
  useDebugValue("initValue")

  return initValue * 2

}

function App() {

  const [a, setA] = useState('')

  const count =useMyHook(100)

  return (
    <div>
       <h1>aPp = {count} - {a}</h1>
       <button>求点击</button>
    </div>
  )
}

export default App;